package com.lyx.lib_audio.mediaplayer.db;

import com.lyx.lib_audio.mediaplayer.model.AudioBean;

public class AudioDbHelper {

    private volatile static AudioDbHelper instance = new AudioDbHelper();
    private CommonDaoUtils<AudioBean> mUserDaoUtils;

    public static AudioDbHelper getInstance() {
        return instance;
    }

    private AudioDbHelper() {
        DaoManager mManager = DaoManager.getInstance();
        AudioBeanDao audioBeanDao = mManager.getDaoSession().getAudioBeanDao();
        mUserDaoUtils = new CommonDaoUtils(AudioBean.class, audioBeanDao);
    }

    public CommonDaoUtils<AudioBean> getUserDaoUtils() {
        return mUserDaoUtils;
    }

}
